Remove infinite loop on certain lex errors