diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js b/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js
index aa6150c4a9b2ed570db038f8b5acc3b6d25bdb0f..da64e03b3cc57bcb45ce7544e47039e3340a5a93 100644
--- a/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js
+++ b/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js
@@ -437,7 +437,16 @@ define(
             icon: '',
           };
           Icons.getIcon(iconName, Icons.sizes.small, null, null, 'inline').done(function (icon) {
-            _this.data.icons[iconName].icon = icon.match(/<svg[\s\S]*<\/svg>/i)[0];
+            var result = icon.match(/<svg[\s\S]*<\/svg>/i);
+
+            // Check if the icon is from the Bitmap Icon Provider (see PHP class for the inline rendering)
+            if (!result) {
+              result = icon.match(/<image[\s\S]*\/>/i);
+            }
+
+            if (result) {
+              _this.data.icons[iconName].icon = result[0];
+            }
 
             if (update) {
               _this.update();