queries: ignore impossible cases

Only packets with physical locations will be passed to this function, so
there's no need to handle the other cases, nor throw an exception in
those cases.