Fixed - host name may not be empty
Merge pull request #1 from Budry/fix-host-name

Fix empty host name