Make sure AccordionGroup has an Accordion parent when hasParent is true