Check to make sure `doc` exists. I have a feeling this might raise the same issues that it did for `EnterLeaveEventPlugin` for IE8.