find_lex_by_name can return NULL, check for it