Don't show next for anything above TotalPages

Bots often have the habit of trying a next page, even if there isn't one.
Thus, using CurrentPage < TotalPages, prevents from unwanted next-links being shown.
Merge pull request #2815 from Firesphere/patch-2

Don't show next for anything above TotalPages