Restore find functionality on encrypted PDFs

Fixes #2663.
This patch does not depend on user-select support.