highcharts: put error if invalid data