Fix chart.series undefined error, add check if chart is present
Fix chart.series undefined error, add check if chart is present

if chart and chart.series is present then only add data else we
will get undefined error

borisyankov/binary-static,brodiecapel16/binary-static,junbon/binary-static-www2,animeshsaxena/binary-static,einhverfr/binary-static,massihx/binary-static,borisyankov/binary-static,animeshsaxena/binary-static,einhverfr/binary-static,einhverfr/binary-static,animeshsaxena/binary-static,massihx/binary-static,borisyankov/binary-static,brodiecapel16/binary-static,tfoertsch/binary-static,massihx/binary-static,massihx/binary-static,brodiecapel16/binary-static,einhverfr/binary-static,junbon/binary-static-www2,tfoertsch/binary-static,animeshsaxena/binary-static,borisyankov/binary-static,brodiecapel16/binary-static