Stop matching empty strings in heredocs.

Fixes infinite loop that was exposed after upgrading to JFlex 1.5.0.