16486 workpackage list throws 500 with target version filter

[``* `#16486` WorkPackage List throws 500 with TargetVersion Filter``](https://www.openproject.org/work_packages/16486)