Use correct API parameter to avoid search JS exceptions

API parameter seems to have changed.
Make sure it points to correct id not undefined

T78216

Change-Id: I42a2c389c6215ba7292f6f479663eae2a568e0ef
(cherry picked from commit 5dcff6a53a59fbf46b48d45d4d9535dd7c3cc5f7)