fixes "undefined" catalog on getPageIndex
Merge branch 'pdfModel_to_pdfDocument'