Fixed behavior when for some reason link.host return blank string