Fix createChartOption empty data check