In this sentence, the antecedent of "their" is "a person". In this sentence, "their" is being used as a singular pronoun, which is a perfectly acceptable thing to do. You could equivalently have used either of the phrases "he or she" or "she or he".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.