diff --git a/typo3/sysext/backend/Classes/Template/Components/MetaInformation.php b/typo3/sysext/backend/Classes/Template/Components/MetaInformation.php
index 836505064104aea2efa8bb135876374f1baeb578..05c52f10d1f38136845109a2a678968c119294e0 100644
--- a/typo3/sysext/backend/Classes/Template/Components/MetaInformation.php
+++ b/typo3/sysext/backend/Classes/Template/Components/MetaInformation.php
@@ -99,8 +99,12 @@ class MetaInformation
      */
     public function getRecordInformation()
     {
-        $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
         $pageRecord = $this->recordArray;
+        if (empty($pageRecord)) {
+            return '';
+        }
+
+        $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
         $uid = '';
         $title = '';
         $additionalInfo = (!empty($pageRecord['_additional_info']) ? $pageRecord['_additional_info'] : '');
diff --git a/typo3/sysext/backend/Resources/Private/Partials/DocHeader.html b/typo3/sysext/backend/Resources/Private/Partials/DocHeader.html
index 61efa4d3e7fb5013b9259bfcfe02fc9f5b1b1587..fe1bb666ab79ceaa69788f3653cc3136290bf6b6 100644
--- a/typo3/sysext/backend/Resources/Private/Partials/DocHeader.html
+++ b/typo3/sysext/backend/Resources/Private/Partials/DocHeader.html
@@ -10,7 +10,9 @@
 			</div>
 		</div>
 		<div class="module-docheader-bar-column-right">
-			<span class="typo3-docheader-pagePath"><f:translate key="LLL:EXT:lang/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw></span> <f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw>
+			<f:if condition="{docHeader.metaInformation.recordInformation}">
+				<span class="typo3-docheader-pagePath"><f:translate key="LLL:EXT:lang/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw></span> <f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw>
+			</f:if>
 		</div>
 	</div>
 	<div class="module-docheader-bar module-docheader-bar-buttons t3js-module-docheader-bar t3js-module-docheader-bar-buttons">