fix #20423: Crash when deleting start repeat in the first measure