Fixed an issue where FuncIRI doesn't work if html file has base tag.