diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 1e9665d16c..2bced5c15a 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -12,7 +12,7 @@
{{ if $link }}{{ end }}
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
{{- $pageBaseLang := replaceRE "([a-z]+).*" "${1}" .Page.Lang }}
- {{- $contentlangs := (union (slice | append .Site.Params.additionalContentLanguage) (slice $pageBaseLang)) }}
+ {{- $contentlangs := (union (slice | append (.Site.Params.additionalContentLanguage | default slice)) (slice $pageBaseLang)) }}
{{- $quotedcontentlangs := slice }}
{{- $missingcontentlangs := slice }}
{{- range $contentlangs }}