FIX fixed the id of work package

Fixes https://www.openproject.org/work_packages/4654

* `#4654` Activity: Wrong id of work package when time spent