diff --git a/frappe/utils/html_utils.py b/frappe/utils/html_utils.py
index 1dd06ffb3a..5a54cd3ce8 100644
--- a/frappe/utils/html_utils.py
+++ b/frappe/utils/html_utils.py
@@ -91,6 +91,7 @@ def get_icon_html(icon, small=False):
u"(\ud83c[\udde0-\uddff])"
"+", flags=re.UNICODE)
+ icon = icon or ""
if icon and emoji_pattern.match(icon):
return '' + icon + ''