Fix some cases where redoing wouldn't open trackevent editor. Fixed cases of undoing causing a crash when trackevent was ghosted