timesig change causes infinite loop in case of tuplets
fix crash if last element is not a measure
Merge pull request #223 from AntonioBL/timesig_change_infinte_loop

fix #18963 dragging timesig cause crash