handle empty parameters

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

If we are here, there is no value, so we're moving what we previously thought is the value to the name.