Fix crash on calling play() in a uninitialized AnimatedSprite2D
Fix crash on calling play() in a uninitialized AnimatedSprite2D

When AnimatedSprite2D::play() was called before SpriteFrames has been initialized, a crach occurred (issue #46013).

Modification : An error message on null check test has been added to prevent crash.

Fix #46013.

vnen/godot,akien-mga/godot,honix/godot,pkowal1982/godot,vnen/godot,DmitriySalnikov/godot,guilhermefelipecgs/godot,Shockblast/godot,vnen/godot,firefly2442/godot,firefly2442/godot,sanikoyes/godot,Valentactive/godot,MarianoGnu/godot,firefly2442/godot,josempans/godot,akien-mga/godot,vnen/godot,ZuBsPaCe/godot,josempans/godot,DmitriySalnikov/godot,Faless/godot,Faless/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,sanikoyes/godot,guilhermefelipecgs/godot,honix/godot,Valentactive/godot,Shockblast/godot,ZuBsPaCe/godot,sanikoyes/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,vkbsb/godot,akien-mga/godot,MarianoGnu/godot,Shockblast/godot,ZuBsPaCe/godot,godotengine/godot,Zylann/godot,Zylann/godot,godotengine/godot,godotengine/godot,Shockblast/godot,DmitriySalnikov/godot,vkbsb/godot,ZuBsPaCe/godot,pkowal1982/godot,sanikoyes/godot,godotengine/godot,vnen/godot,Zylann/godot,godotengine/godot,akien-mga/godot,josempans/godot,firefly2442/godot,akien-mga/godot,BastiaanOlij/godot,Faless/godot,Valentactive/godot,josempans/godot,sanikoyes/godot,BastiaanOlij/godot,Faless/godot,akien-mga/godot,vkbsb/godot,pkowal1982/godot,Zylann/godot,godotengine/godot,Valentactive/godot,honix/godot,BastiaanOlij/godot,josempans/godot,Faless/godot,pkowal1982/godot,vkbsb/godot,ZuBsPaCe/godot,akien-mga/godot,ZuBsPaCe/godot,Valentactive/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,MarianoGnu/godot,godotengine/godot,vnen/godot,pkowal1982/godot,firefly2442/godot,Zylann/godot,honix/godot,vkbsb/godot,Shockblast/godot,honix/godot,Shockblast/godot,akien-mga/godot,BastiaanOlij/godot,firefly2442/godot,sanikoyes/godot,ZuBsPaCe/godot,vnen/godot,josempans/godot,vkbsb/godot,DmitriySalnikov/godot,Zylann/godot,Faless/godot,Faless/godot,Valentactive/godot,Zylann/godot,MarianoGnu/godot,firefly2442/godot,Valentactive/godot,Shockblast/godot,guilhermefelipecgs/godot,vkbsb/godot,sanikoyes/godot,Valentactive/godot,ZuBsPaCe/godot,Zylann/godot,pkowal1982/godot,josempans/godot,MarianoGnu/godot,josempans/godot,Faless/godot,BastiaanOlij/godot,firefly2442/godot,DmitriySalnikov/godot,vkbsb/godot,MarianoGnu/godot,godotengine/godot,DmitriySalnikov/godot,pkowal1982/godot,MarianoGnu/godot,honix/godot,DmitriySalnikov/godot,BastiaanOlij/godot,vnen/godot,guilhermefelipecgs/godot,pkowal1982/godot,Shockblast/godot,MarianoGnu/godot,sanikoyes/godot