Fix arguments when command function has no defaults

When no parameter in a CLI command function had a default value,
the logic to prepare the arguments being passed to it would always
return an empty dictionary. This commit makes sure that this case
is properly handled.