Contacts: Fix undefined index in search.