Add sanity check after loading the configuration.