diff --git a/src/LinkExtractorBatch.php b/src/LinkExtractorBatch.php
index fdd354c..2e4e3e0 100644
--- a/src/LinkExtractorBatch.php
+++ b/src/LinkExtractorBatch.php
@@ -277,7 +277,7 @@ class LinkExtractorBatch {
     }
 
     $query->fields('base', [$entityType->getKey('id')]);
-    if (!empty($bundle)) {
+    if (!empty($bundle) && $entityType->getKey('bundle')) {
       $query->condition('base.' . $entityType->getKey('bundle'), $bundle);
     }
 
