Stop paginating when there are no more results.