Template render error: Unexpected tag name "else"