Do not crash get_own_ip if we are disconnected.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>