Fix NPE with unknown material in config