Moved is_error field from template_parse_state to template_parser struct.