Regexp plugin reports errors properly for invalid regexps with options defined. fix #2769