Fix a StringIndexOutOfBoundsException in JSChartUtil when the tagObjectList is empty

Fix a StringIndexOutOfBoundsException in JSChartUtil when the tagObjectList is empty