Fix a regression with RegExp.

This fixes an issue where a non-matching RegExp pattern would incorrectly result in a match.