[DF-4184] Fixed crash with resave of cubemap