Fixed issue with Highcharts error 19 triggering with a hidden or very small chart. Closes #2272.