Grammatical correctness is a fluid thing. "they/them/their" used singularily is one of those things that is on the edge of being accepted. Thing is, schools are slow to react and will keep saying it's wrong using a rigid form of thinking about grammatical correctness.