diff --git a/templates/misc/metadata-wrapper.twig b/templates/misc/metadata-wrapper.twig
index 83427544e..8a0256bb9 100644
--- a/templates/misc/metadata-wrapper.twig
+++ b/templates/misc/metadata-wrapper.twig
@@ -1,9 +1,11 @@
{% for item in items %}
- {% include '@hdbt/misc/metadata-item.twig' with {
- item_icon: item.icon,
- item_label: item.label,
- item_content: item.content
- }%}
+ {% if item %}
+ {% include '@hdbt/misc/metadata-item.twig' with {
+ item_icon: item.icon,
+ item_label: item.label,
+ item_content: item.content
+ }%}
+ {% endif %}
{% endfor %}