Avoid python crash mentioned in issue #331
Merge pull request #430 from PeterBjuhr/musicxml

Avoid python crash mentioned in issue #331