added check for query so that nextPage method does not bomb if the collection was create from "query-less" call.