Fix error when paging past end of hits

Someone might do this if they are guessing at the page numbers as a way of navigating through a large list.