Fixed NullReferenceExcepton in Socket.Connect for non-IP endpoints

Socket.Connect(EndPoint) throws a NullReferenceException when connecting to non-IP (eg Unix) endpoints in Dgram mode.