Fixed #2845 causing JS errors related to mouse actions on a chart that has been destroyed.