fix get_indexes for mongos before 2.4