fix #40621: Crash on undo of Note entry