Fix NPE in Config