Made 'removeEmptyNodes' into a wysihtml5.dom method