Removed redundant ClassDB::is_class_enabled() and moved second dynamic_cast inside worst case if
Removed redundant ClassDB::is_class_enabled() and moved second dynamic_cast inside worst case if

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