fix failure of index for not existent rid in case of distributed.