Fix bug when there are no entries on a search page.