nimsuggest crashes on arraymancer.nim
### Description

Running nimsuggest on `arraymancer.nim` crashes (at least on Windows). To reproduce it:

```
C:\repositories\nim_tests> git clone https://github.com/mratsim/Arraymancer
C:\repositories\nim_tests> cd Arraymancer\src
C:\repositories\nim_tests\Arraymancer\src>nimsuggest --v4 arraymancer.nim
usage: sug|con|def|use|dus|chk|mod|highlight|outline|known|project file.nim[;dirtyfile.nim]:line:col
type 'quit' to quit
type 'debug' to toggle debug mode on/off
type 'terse' to toggle terse mode on/off
> outline
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
```
Note that I noticed this problem when using the VS Code nim-lang extension to work on arraymancer, as the extension kept telling me that nimsuggest had crashed.


### Nim Version

Nim Compiler Version 2.1.9 [Windows: amd64]
Compiled at 2024-07-24
Copyright (c) 2006-2024 by Andreas Rumpf

active boot switches: -d:release

### Current Output

```text
C:\repositories\nim_tests> git clone https://github.com/mratsim/Arraymancer
C:\repositories\nim_tests> cd Arraymancer\src
C:\repositories\nim_tests\Arraymancer\src>nimsuggest --v4 arraymancer.nim
usage: sug|con|def|use|dus|chk|mod|highlight|outline|known|project file.nim[;dirtyfile.nim]:line:col
type 'quit' to quit
type 'debug' to toggle debug mode on/off
type 'terse' to toggle terse mode on/off
> outline
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
```


### Expected Output

_No response_

### Possible Solution

_No response_

### Additional Information

_No response_