Added check that config is not empty when parsing.