fixes templating error (LMS-2560)

@singingwolfboy , last minute addition to the release candidate, please? It fixes a 500 error on our 500 error page.

#3441