fix #37246: crash when adding tempo text to part with no segment at tick
Merge pull request #1401 from MarcSabatella/37246-tempo-crash

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