End in non-text context Error

See https://discourse.gohugo.io/t/0-119-regression-in-html-parsing/46397/2