diff --git a/typo3/sysext/indexed_search/Classes/Controller/SearchController.php b/typo3/sysext/indexed_search/Classes/Controller/SearchController.php
index 7c69eec13de8d919e027a5da5e90d7f3c28acd66..fe7e9d1975026ac8b503baf57e6cd0222ceec363 100644
--- a/typo3/sysext/indexed_search/Classes/Controller/SearchController.php
+++ b/typo3/sysext/indexed_search/Classes/Controller/SearchController.php
@@ -706,7 +706,7 @@ class SearchController extends ActionController
                     if ($fullPath) {
                         $imageInfo = GeneralUtility::makeInstance(ImageInfo::class, $fullPath);
                         $iconPath = PathUtility::getAbsoluteWebPath($fullPath);
-                        $this->iconFileNameCache[$imageType] = $imageInfo->getWidth()
+                        $this->iconFileNameCache[$imageType] = $imageInfo->getWidth() > 0
                             ? '<img src="' . $iconPath
                               . '" width="' . $imageInfo->getWidth()
                               . '" height="' . $imageInfo->getHeight()