fix a bug saving state for un-realized tabs

fixes https://github.com/dart-lang/chromedeveditor/issues/3450

This was caused by trying to save state for an editor that had never had it's contents realized.