API: Don't use an empty LinkBatch in ApiOpenSearch

Bug: T78074
Change-Id: Ie4609b0867d816375f49190ee2860526b8fd8f3e
Merge "API: Don't use an empty LinkBatch in ApiOpenSearch"