shell: Fix blank group list item when adding server.

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

Fix handle_add() in the backend to handle empty host name.