Fixed parsing of page numbers for 1-page documents

Signed-off-by: Stefan Marr <git@stefan-marr.de>