Preventing possible rendering error in the _template_download haml view