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.
Merge pull request #291 from alphagov/fix_error_on_paging_past_end_of_hits

Fix error when paging past end of hits