masks: correctly initialize form_gui->edit_mode: fixes regression when removing shapes