API: Don't use an empty LinkBatch in ApiOpenSearch