Set 'active' correctly for accordion widget

The accordion widget was previously being passed true and false, where as it either expects true or the integer of the panel to show.

This fix sets it as either false or 0.
Merge pull request #1056 from kopymark/patch-2

BUG: Accordion widget doesn't actually accept 'true' for 'active'