Prevent user entering invalid page. Refs #8230.