Robustify, in case the page number is not valid report the error to user rather to die with an exception.