Try to avoid calling host if the IP is empty - trying to fix a but reported by scripple

Signed-off-by: emanuele <emanuele45@gmail.com>