Fixed null pointer exceptions in checkTeamStatus