avoid IndexError when empty host argument is given
Merge pull request #100 from credativ/fix-empty-host-indexerror

avoid IndexError when empty host argument is given