Fix config undefined issue when there isn't a config.