Restore sanity check in MassSearchReplaceAnyInputTagVisitor; skip it onl...

...y on demand.
Restore sanity check in MassSearchReplaceAnyInputTagVisitor, but skip it on demand for application in #1242.