Fix the regression of displaying a search form on PDF.js viewer unexpectedly