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.
Note that hidePage is NOT given the same value in both branches...there's an extra ! at the start of one.