[Fix] API v2 cannot set planning element status

Fixes [Bug #3229](https://www.openproject.org/work_packages/3229)