Fix crash adding point to a Curve2D from the editor
Fix crash adding point to a Curve2D from the editor

Adding point to a Path2D with null Curve2D from the canvas was
causing a crash after trying to use a null object.

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