Reset lexical state in case of lexical exception.