Engine: fixed crash on plugin saveDefaults