Crash when moving beam if first note of beam is in the first measure and other notes of beam are in the second measure
Step to reproduce:
1. Create one 8th note in the end of the first measure, leaving rest notes in front of it.
2. Create one 8th note in the beginning of the second measure.
3. Set the second 8th note's beam mode to "beam middle".
4. Beam appears. Now double click the beam and try to move it. Then crash happens.
The file bug2.mscz shows this case.
Note that the crash will not happen if more than one note of the beam is in the first measure.
The file not crash.mscz shows this case.
Maybe it looks duplicate of #281154: Crash with first note of measure set to beam middle and nothing to beam to. But in #281154: Crash with first note of measure set to beam middle and nothing to beam to, it's the half note that is in the first measure, and the part of beam attached to that half note, is not shown properly.