Minor bugfix when getting all related workitems