Fixed URL parsing when query string contained the ? and nothing else.