adding fix for Sprite crashes when the texture doesn't exist