error handling if config data is not received.

handling of empty configdata.
better error messages.
Merge pull request #1 from valerytschopp/master

Error handling if config data is not received.