Stops a PHP notice when url lacks a query string