Added null check for pixi sprite calculateverticies because it sometimes makes a texture invalid when it shouldn't be.