Fix work packages sidebar hook after query filter refactoring (#2395)