ensure query string is only appended to GET requests if params are present