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

 - with permalink (create and apply)
 - in reload theme

fix #429