diff --git a/modules/entity_share_client/src/Plugin/EntityShareClient/Processor/EntityReference.php b/modules/entity_share_client/src/Plugin/EntityShareClient/Processor/EntityReference.php
index 49966ca..0d91ecf 100644
--- a/modules/entity_share_client/src/Plugin/EntityShareClient/Processor/EntityReference.php
+++ b/modules/entity_share_client/src/Plugin/EntityShareClient/Processor/EntityReference.php
@@ -141,7 +141,7 @@ class EntityReference extends ImportProcessorPluginBase implements PluginFormInt
             $referenced_entities_ids = $this->getExistingEntities($prepared_field_data);
           }
           // Import referenced entities.
-          elseif (isset($field_data['links']['related']['href'])) {
+          elseif (isset($field_data['links']['related']['href']) && isset($field_data['links']['related']['path'])) {
             $referenced_entities_ids = $this->importUrl($runtime_import_context, $field_data['links']['related']['href']);
             // It is possible that some entities have been skipped from import,
             // but do exist, so ensure that those are available to the
