Fix link click handler in case no href attribute is set.