Fix input_to_chart handle of parsing error with single begin node