Fix crash when the given page was higher than the total number of pages.