BL-705: Restrict the range of pages 'printed' to make PDF

Restrict the range of pages printed to the ones that actually exist,
which prevents Gecko adding an extra blank one.