diff --git a/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
index e242e5b4d8bdba66208240e7207cccd2519de06f..0aec98069ce2ec13833032d161c27c00fe92e609 100644
--- a/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
+++ b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
@@ -141,6 +141,8 @@ protected function getEntity() {
         // Fallback to the loading by the UUID.
         $uuid = $this->getUuid();
         $entity = $this->entityRepository->loadEntityByUuid('menu_link_content', $uuid);
+      }
+      if (!$entity) {
         throw new PluginException("Entity not found through the menu link plugin definition and could not fallback on UUID '$uuid'");
       }
       // Clone the entity object to avoid tampering with the static cache.