fix reset_parse_state for when the extension module did not resolve a parse error.