Fix error when query string as no ?

On some setup you get the ? on other you do not.
This will test the situation and figure out what to do.
release 1.2.1