[DF-3969][DF-3970] Fixed crush while doing material clone