Fix crash changing automation state of MIDI 'automation' tracks.