On Django 1.5, exceptions would still be thrown on the last page due to a typo

I made a typo, and checked if it was the first page before including the page number for the next page, as a result on Django 1.5 this would throw an exception on the last page.

This fixes that problem.