Update plugin.js

editorInstance.id returns an error. I think it was a typo and should be editor.id. 

The extra condition is needed because editor.config.autosave_SaveKey returns "undefined" if the config entry does not exists.