Do not even attemp upload if the same parent is already used.
Merge pull request #54 from ktf/22-backport

Do not even attemp upload if the same parent is already used.