avoid seg faults with strcmp when missing .lex attribute