Fixed JS error on hovering over a chart after running Chart.setData without redrawing. Closes #2594.