Fix bug in Editor.js due to empty widget property when resize() is called
before the editor is initialized.