wrapped URI's host() method to prevent failure when url undefined