Avoid failure on debug check of replacements

"Hide Others" menu item doesn't accept any replacements. Providing
replacements will fail the debug check and block the execution.
Allow Window.open to open the correct file even if a path is specified in the hash/anchor part of the URL.