Fix TransportError with BulkIndexer class