Don't append '?' without query parameters
Merge pull request #2 from pencil/clear-empty-query-parameters

Don't append '?' without query parameters