BZ-1047900: fixing an issue on renaming indexed documents