[DF-185] Fixed crash at MaterialEditor with wrong selection