[minor] Remove some unneeded conditional statements

If i'm not wrong `req.uri` is always set when we test if the request should be captured by primus.
`req.query` should be undefined since we are the first to capture the request, so get it directly from `req.uri`.