fix #38976
Merge pull request #1531 from lvinken/musicxml-fixes

fix #38976