you need pass a child pane widget to selectChild instead of a number. You are doing a trick to achieve "no pane being selected", but accordionContainer will keep your current selected pane so next time it can collapse this pane while you select another pane. Now, of course, for you current selected pane "0", it is actually an undefined pane, no containerNode property.
You can't collapse all panes for a AccordionContainer, you can try use TitleGroup instead,