added nullpointer check in Seq::setPos(int) to avoid crash
fix #20423: Crash when deleting start repeat in the first measure
Merge pull request #277 from heuchi/10050_crash_in_pa

Fix #10050