Fix undefined lines in lexer error messages