Fixed regression #2794 that caused text outside a chart element to fail when containing HTML tags.