Fix changelog generation in ExtractResourceWithChangesSCM
when several files are changed at once
(used in the fix for JENKINS-22622)