SONAR-5056 Fix issue when exporting model to XML