Bug 885384 - Handle page numbers out of range when changing the max results per page value