Load textures only selective for material

Load the textures only, if a LAYR is a valid entry. A valid entry is an
entry which is not Null or does not have an empty path. Before that
patch, every possible entry was tried to load. If load failed, it was
not added to the material.