Fixed 500 passing the note parameter on work package create

Implements https://www.openproject.org/work_packages/4337

Suggested changelog entry:
* `#4337` Fix: HTTP 500 when creating WP with note via API