Fixed issue with document events set in exporting not being destroyed when destroying chart. Closes #2407.