fix iterator initialization for RBTree based indexes
(cherry picked from commit 13a2ea7cdb3baea0428f0a227f26a481a0b6b3bb)