Fixed null error in team performance calculation