fixes templating error LMS-2560

@sarina , this is actually causing pretty ugly 500 errors, this may be worth glomming onto the release