handle empty parameters

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