Backport fix for urls parsing in HTML parts.