Allow whitespace in handlebars closing sections (fixes #983)