MWEB-826 Throw exception when config is invalid

Probably you'll have to rename it after finishing [MWEB-794](https://wikia-inc.atlassian.net/browse/MWEB-794)