fixed cli error in list devices if device has no nickname