Fix crash when texture failed to load from color