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

This avoids a crash, but potentially misses a violation.
Merge pull request #53 from jonas054/bugfix2

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