Fix internal server error when address book in autocomplete_addressbooks doesn't exist

Fix internal server error if get_address_book did return null because there are no address books or because a address book in autocomplete_addressbooks doesn't exist.