shell: Fix blank group list item when adding server.

When adding a server, the group list item won't be generated
if the address or host name of the machine is empty (whitespaces).