Fixes PDFDocumentProxy.getDataLoaded API name (and refactoring)