Detect wrong component

fixes #23
I'd rather not see `getTree` here. Imagine your Icinga configuration. This would be huge, when you only need the first level of the keys...