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.
Merge pull request #2322 from ghostoy/feature/cong/fix-builtin

Avoid failure on debug check of replacements
Merge pull request #1 from rogerwang/master

merged latest nw..