Fix non-existent link into pagination

Non-existent page links are available (like ?page=0 or ?page=-1) because we can click on the "prev" and "next" link even if they have the disabled class.