Default to page 1 if type conversion fails
PR feedback: invalid page IDs should raise a 404
Merge fix for bad page numbers