Fix crash when changing automation mode for MIDI track control automation.