Fix crasher with bad regexes.