Don't allow negative-indexing of pages.
Bugfix: index properly.

This is the same thing as 3f28656, but in a different spot.  Guess
that's what I get for duplicating logic.