Fixed JS errors in Highstock when resizing a window after a chart's container is hidden. Closes #1998.
Merge remote-tracking branch 'origin/master'