fixed error with cleaning up listeners when a record is deleted and then re-added without removing it from the index.