Added fix for Firefox compatibility

patch from https://github.com/Edicy/wysihtml5/issues/32