JCR-2270: Changes are not properly purged once indexed on slaves

https://jira.exoplatform.org/browse/JCR-2270