Fix config loading error and do not activate plugin if config has errors.