Catch value error for bad page_num [Fixed #42]