Fix crash if plane fails to be created