Fix work packages menu item never being selected

https://www.openproject.org/work_packages/15441

For query menu items this already worked, but the work packages main
item was never selected.