fix #37246: crash when adding tempo text to part with no segment at tick