Bail out if we can't find a "when ... ;" due to lack of tokens.

This avoids a crash, but potentially misses a violation.