last value is not result in template body
### Description

It worked in `2.0.8`, but not in `2.0.10`

```nim
when isMainModule:
  template t(body: untyped) =
    try:
      body
    except CatchableError, Defect:
      raise getCurrentException()

  proc f(): int =
    t:
      100

  echo f()
```

### Nim Version

- 2.0.10
- 2.2.0

### Current Output

```text
Error: expression '100' is of type 'int literal(100)' and has to be used (or discarded);
```


### Expected Output

```text
nim 2.0.8:

100
```


### Known Workarounds

_No response_

### Additional Information

_No response_