Fix NPE in loading config file