fix creation of new sources.xml (fixes #14272)