Disable hyperlink generation when node.href is empty

At line 308, adding more conditions when choosing for create a hyperlink element instead a text node:
... && node.href && node.href != null && node.href != "") {
avoids to generate hyperlink elements when it is not necessary, that I think is the expected behavior for this case.