fix #22645: Adding bar to part of multi-instrument score causes crash