Fix editor crash when pasting mission (#230)