EMM-734 : fixed issue which happens when the host url is null