[DF-3538] Fixed respacker crash while texture packing.