Fix paging links to next page appearing when theres no items to display on it