Fix errors when adding/updating contacts in active search (#1490015)