fix #20355 Undo causes crash when undoing a note smaller than quarter note