fix #20964: 7 and 9 tuplet groups result in a corrupted score when reopened