librustc: Fix a couple of cases in which unboxed closure typechecking

code wasn't considering the zero-argument case.

Closes #16168.

r? @pnkfelix