Fix work packages menu item never being selected

For query menu items this already worked, but the work packages main
item was never selected.