Allow parameters without values

Hi!
I found an issue when my docs were sending `"&param="`. It tried to unescape the nil value and failed with exception.
So this patch fixes the issue and adds a test.
Hope thats all right!