Fix crash when twiddling MIDI controllers (#6050).