ir: Don't fail if :invoke has zero arguments (#58477)
All julia functions always have at least one argument (ignoring toplevel
thunks, but those have special representation). However, with
ABIOverride it is possible to create zero argument CodeInstances and
:invoke them. I'm not entirely sure this is useful, but things do
generally seem to go through, so let's not unnecessarily error in the
optimizer.