handle empty parameters

Should fix the conversion issue for parameters with no value.

Thanks, @armin-hackmann!


when name is `null` this will override the logic from the `is_null` branch above