Added safety checks to editing methods in MIKMIDITrack