without this check then given a URI with path /path
the resulting URL will be /path?null=