Bug 830214 - Avoid crashing when printing selection of a PDF with many pages in pdf.js. r=roc a=bbajaj