MongoDB queries don’t always return all matching documents