Fix bug when an <a> tag is not containing href attribute.