PAHMA-964: Fix reindexing of contacts.