Fixed #3600, errors raised in modules when a chart was destroyed in its own callback.