Test for undefined
Test another time for undefined
Merge pull request #89 from Waxolunist/wysihtml5

---

In current Chromium the focus method gets sometimes called with this set to window. Thus an exception is thrown, which is disturbing during debugging.

```
Uncaught TypeError: Cannot read property ownerDocument of undefined
```

This PR tests for undefined.