Fix negated literal/end of string handling.

Fixes another of the t/p5regex failures on the MoarVM backend.