return empty name when getnameinfo failed

otherwise it returns garbage and causes problem down the line