Only handle scroll events when PDFView.pdfDocument is defined (issue 4642)
Merge pull request #4645 from Snuffleupagus/issue-4642

Only handle scroll events when PDFView.pdfDocument is defined (issue 4642)