catch ValueError when coercing page numbers