add null safety in case a sprite is created without texture parameters

(0) -100 -30 -10 -1 +1 +10 tip

mercurial