diff --git a/templates/base.html b/templates/base.html
index c7fb7e063..d5007ad83 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -28,7 +28,7 @@ Please see LICENSE files in the repository root for full details.
{{ captcha.head() }}
diff --git a/templates/components/footer.html b/templates/components/footer.html
index 34bb5592f..60a788859 100644
--- a/templates/components/footer.html
+++ b/templates/components/footer.html
@@ -7,19 +7,19 @@ Please see LICENSE files in the repository root for full details.
-#}
diff --git a/templates/pages/register/password.html b/templates/pages/register/password.html
index f6f7a924f..a4c585409 100644
--- a/templates/pages/register/password.html
+++ b/templates/pages/register/password.html
@@ -49,7 +49,7 @@ Please see LICENSE files in the repository root for full details.
{% endcall %}
- {% if branding.tos_uri %}
+ {% if branding.tos_uri is defined %}
{% call(f) field.field(label=_("mas.register.terms_of_service", tos_uri=branding.tos_uri), name="accept_terms", form_state=form, inline=true, class="my-4") %}
diff --git a/templates/pages/upstream_oauth2/do_register.html b/templates/pages/upstream_oauth2/do_register.html
index b3d8bdee8..6d5db9808 100644
--- a/templates/pages/upstream_oauth2/do_register.html
+++ b/templates/pages/upstream_oauth2/do_register.html
@@ -175,7 +175,7 @@ Please see LICENSE files in the repository root for full details.
{% endif %}
- {% if branding.tos_uri %}
+ {% if branding.tos_uri is defined %}
{% call(f) field.field(label=_("mas.register.terms_of_service", tos_uri=branding.tos_uri), name="accept_terms", form_state=form_state, inline=true, class="my-4") %}