Place NRE guards around config file loading