exclude posible null key when converting NameValueCollection to dict

Fixes issue #1