Make sure that the value of host is checked before trying to hashify it (Fixes #21)