Raise HTTP 404 if type conversion of page ID fails

This prevents a HTTP 500 when a non-numeric `page` number is supplied as a GET parameter.