fix subprojects are not copied correctly

[``* `#15173` Subprojects are not copied correctly``](http://www.openproject.org/work_packages/15173)
Maybe one could add an expectation as well to avoid repeating the bug you fixed