fix parsing of s{}="" plus statement mod if

We should not check for old regex modifiers (/i) when we have the assignment form of a substitution.
Fixes RT #123168.