[FIX] Log time for invalid work package

Implements [ticket 2026](https://www.openproject.org/rb/issue_boxes/2026)