Fix improper check for query.collection?, yielding false positives in cases when oid was given