Fix debugmsg about missing materials.