Fix wrong access of material name for compatibility with blender 2.69