fix work package duplication when not copying any tasks

https://www.openproject.org/work_packages/2753