Don't set checked on node, but check what to set (checked, or hidden_check). Also, Ext.isDefined(null) returns true, so extra check for null values. Fixed #110
Merge pull request #150 from flamingo-geocms/bug/toc-checkboxes-all-layers

Looks fine to me