Calling nil closure crashes the VM
### Description

```nim
static:
  let x: proc () = nil
  x()
```

### Nim Version

c948ab9

### Current Output

```text
Error: unhandled exception: field 'sym' is not accessible for type 'TNode' using 'kind = nkNilLit' [FieldDefect]
```


### Expected Output

```text
proper error message/exception
```


### Known Workarounds

_No response_

### Additional Information

First encountered in #24054