add check on addressbook save to avoid errors #417