Fix crashes with delete in editor (fixes #315)

Fix crashes in characters, character editor,
mission objective character.