Prevent infinite recursion if there is an erroneous cyclical
relationship in the ancestor relationships for an individual.