diff --git a/includes/remote_entity.property.inc b/includes/remote_entity.property.inc
index a4bbb8d..115cf09 100644
--- a/includes/remote_entity.property.inc
+++ b/includes/remote_entity.property.inc
@@ -62,7 +62,7 @@ class RemoteEntityAPIDefaultMetadataController extends EntityDefaultMetadataCont
     // type.
     // First get the resource for our entity type, and then the connection.
     $resource = clients_resource_get_for_component('remote_entity', $this->type);
-    if (empty($resource) || !($connection = $resource->getConnection())) {
+    if (empty($resource) || !($connection = $resource->getConnection()) || !($connection instanceof ClientsRemoteEntityInterface)) {
       // It's possible to come here and find no resource or connection for a
       // remote entity type. This happens when _entity_defaults_rebuild()
       // imports resources defined in code, and during its own invocation of
