Throw exception when config is invalid
Addressed CR comments
Merge pull request #4940 from Wikia/MWEB-826

MWEB-826 Throw exception when config is invalid