Fix buffer overflow for forward reference within backward assertion with excess closing parenthesis. Bugzilla 1651.
Changed paths: