Check whether net.ParseIP returned nil or not

This is fix of #8102

Signed-off-by: Oh Jinkyun <tintypemolly@gmail.com>
@LK4D4 I don't think he can test this functionality via the CLI.  it's probably impossible.