Fix check for freed object during cast
Fix check for freed object during cast

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