Fix the publication of files with multiple parents.
Merge pull request #4290 from dmwm/FixPileupFilesPublication

Fix the publication of files with multiple parents.