[FIX] Invalid work package status transitions

Implements [ticket 3532](https://www.openproject.org/work_packages/3532)

This PR is related to [openproject core PR 782](https://github.com/opf/openproject/pull/782)