workaround for #24473
Merge pull request #675 from lvinken/24473-musicxml-crash-2

workaround for #24473