nimsuggest: Crash when parsing const x = readFile(...)
### Description

This file will crash `nimsuggest`:

```nim
proc bug(a: string): string =
  if a == "":
    const compiled_file = readFile("../scripts/models.json")
    return compiled_file
  else:
    return a

echo bug("aa")
```

Note that `../scripts/models.json` is a valid file.

Log from langserver:

```
DBG ShowMessage                                message="Using Nim Compiler Version 2.2.0 [Windows: amd64]"
INF Starting nimsuggest                        root=".....\\bug.nim" timeout=120000 path="C:\\Programs\\nim-2.2.0\\bin\\nimsuggest.exe" workingDir="......"
DBG Parsing nimsuggest capability              capability=con
DBG Parsing nimsuggest capability              capability=exceptionInlayHints
DBG Parsing nimsuggest capability              capability=unknownFile
DBG Nimsuggest Capabilities                    capabilities="{con, exceptionInlayHints, unknownFile}"
ERR NimSuggest Error (stderr)                  err="syncio.nim(855)          readFile\nError: unhandled exception: cannot open: ../scripts/models.json [IOError]\n"
DBG NimSuggest needed to be restarted due to an error 
WRN Server stopped.                            projectFile="......bug.nim"
DBG ShowMessage                                message="Server failed with syncio.nim(855)          readFile\nError: unhandled exception: cannot open: ../scripts/models.json [IOError]\n."
```

### Nim Version

```
Nim Compiler Version 2.2.0 [Windows: amd64]
Compiled at 2024-10-02
Copyright (c) 2006-2024 by Andreas Rumpf

active boot switches: -d:release
```

### Current Output

```text
Report error and exit:


Error: unhandled exception: cannot open: ../scripts/models.json [IOError]
```
```


### Expected Output

_No response_

### Known Workarounds

No. langserer will be unavailable for source files containing such statements.

### Additional Information

_No response_