Copy annotation indexes before returning

Otherwise modifying the set can change your original data,
which is bad.

Bug: 68677
Change-Id: Ia120b08ee385f881407696ce3c5d9cb606afe1c8
Merge "Copy annotation indexes before returning"