Unlike the Python runtime, template expressions can refer to an undefined
variable without causing a NameError to be raised. The result will be an
instance of the Undefined class, which is treated the same as False in
conditions, but raise an exception on any other operation: