Handling empty contacts/phonebook

Closes #409