Fix/changing parent on relations tab

Fixed broken changing of WP parent: https://www.openproject.org/work_packages/14055