handle pagination with no results (totalPages=0)