Fixing bug where search query is appended to URL even if it doesn't exist!

I think this was accidentaly introduced in #88, I only found out because I ended up with a URL ending in:

`access_token=HSidfmksdj8j2dsfundefinedq=undefined` which obviously screwed my authentication.