Some fix for layers at first level (no layer group)
 - with permalink (create and apply)
 - in reload theme
Merge pull request #432 from camptocamp/layertree-firstlevel-layervisibility

Some fix for layers at first level (no layer group)