Fixed crash when Material of item isn't setted manually.