Fixed a crash that occurred when using AnimatedSprite because its position was null until set.