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.
I suggest to ask @myabc on that matter. He probably has some insight on this mysterious case.