Fix typo when rejecting Promise in getPage
Merge pull request #4771 from Snuffleupagus/api-promise-reject-fix

Fix typo when rejecting Promise in getPage
Reduce the number of calls to PDFView.getVisiblePages from updateViewarea