(PUP-2080) Fix problem with passing undef/nil to param with default

The logic that matches up given arguments with parameters when
a given argument is nil, and the parameter has a default expression
and is a capturing parameter (can only happen for function calls to
functions written in the puppet language)