Use an actual empty lambda for tests.
Guard against objects that don't support #call.
Update comment to point to the elasticsearch-api documentation describing #bulk.