BF Prevent 'None' from being sent to is_valid_ip

It seems appropriate that is_valid_ip should throw an exception for
non-string inputs, so I'm putting guards prior to calling.