Handle the case where the current page number is not valid and beyond NSNotFound

Assertion was 'exceeds maximum index value of NSNotFound - 1'