Fix bug in adding parent of root in index.
Merge pull request #2219 from dart-lang/small_fix_in_index

Fix bug in adding parent of root in index.