Fixes AccordionPanel for invisible tabs.