layer.childLayers isn't always set
Merge pull request #1042 from camptocamp/no-childLayers

layer.childLayers isn't always set