Fixed issue if department memberships don't have any teams.

Staff members were getting hidden if the department didn't have more than 1 team.