[DF-4036] Fixed crash with loading of materials