[Hotfix] 13789 apiv2 ids parameter ignored for planning elements

[``* `#13789` Ids parameter ignored in API v2's planning elements endpoint``](https://www.openproject.org/work_packages/13789)

:exclamation: This is a backport of #1578