Add regression test for #398
Do not cache the results of a failed predicate evaluation in the DFA (fixes #398)
Merge pull request #399 from sharwell/fix-398

Fix 398