fix possible crash
fix #7713
fix #35876
fix #20783: add section breaks to joined scores

and line and page breaks too...