Error handling if config data is not received.

Handling of empty config data.
Better error messages.