Fix HtmlParser handling of relative base tags, close #2136