function FallbackCompositionState(root) {
  this._root = root;
  this._startText = this.getText();
  this._fallbackText = null;
}
Protect against document.createEvent() returning null
Some popup blocker extensions appear to do this:
https://github.com/facebook/react/issues/6887