Prevent searching from breaking when opening a new file in the web viewer
Merge pull request #3612 from Snuffleupagus/fix-find-when-loading-new-file

Prevent searching from breaking when opening a new file in the web viewer