Quick patch to fix texture errors.

Reportedly, the color would be nil in some rare case.