Added checks for parent existance in taxonomy lineage