Fixed expand bug in cases where anchors has no href attribute