DEV: Fix incorrect optimization in SvgSprite take 2.

DEV: Fix incorrect optimization in SvgSprite take 2.

Follow-up to 0700e9382d551e4948b493e1219f3119e52bcae4

diff --git a/lib/svg_sprite/svg_sprite.rb b/lib/svg_sprite/svg_sprite.rb
index 3c49a81..a7ba577 100644
--- a/lib/svg_sprite/svg_sprite.rb
+++ b/lib/svg_sprite/svg_sprite.rb
@@ -459,8 +459,6 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL
   end
 
   def self.custom_icons(theme_ids)
-    return [] if theme_ids.blank?
-
     # Automatically register icons in sprites added via themes or plugins
     icons = []
     custom_svg_sprites(theme_ids).each do |fname|

GitHub sha: 4390b50b

This commit appears in #13244 which was approved by lis2. It was merged by tgxworld.