Fixes an issue when canceling the root tree while editing was removing all data.
Fixes an issue when canceling the root tree while editing was removing all data.

formio/formio.js,formio/formio.js,formio/formio.js