Added extra check for empty position attribute of mesh.