fixed outputting of layers if the corresponding theme has no layers and subthemes
Merge pull request #85 from occamlabs/invalid-layer-in-caps-fix

Fixed outputting of layers if the corresponding theme has no layers and subthemes