Empty list in ids query should not fail, but match no docs
relates to #2687