handle empty parameters

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

Could you make the comparison triple-equals (`===`).