fix: Wrap url.parse to always return an object for query property

Closes #1182
Merge pull request #1182 from nathanfaucett/master

Cannot read property x-ua-compatible of null