[FIX] Invalid work package status transitions 3532

Implements [ticket 3532](https://www.openproject.org/work_packages/3532)