Fix id creation to be first instance of reference.
Fix id creation to be first instance of reference.

This was causing a bug where builds would fail with a "cannot find id"
error.

Test: build support library directory and run tests.
Change-Id: I7600d6f2c1c1d6ba30adad7668b7e232b6f3ed50
Fixes: 70692138

aosp-mirror/platform_frameworks_support,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support