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.
John, do you want to include the hypothesis that what's different here is that we have 2 pages with display: none at the end?