Print error if index value in a page is wrong type

This was causing a panic with no information displayed about the page causing
the error.

I treated this as some sort of warning, rather than return an error and stop
processing.