Added a runtime patch for wysihtml5 that should hopefully fix the "cannot read property document of null" bug

This issue is difficult to reproduce so only time will tell.