Output is flooding with `A foreign thread is created` when i use NavigationAgent
![image](https://user-images.githubusercontent.com/64196105/188319571-8ab2f754-37de-4c5e-ae6c-6d3218d24cfa.png)

log file:
```
ERROR: Unhandled Nim exception: No stack traceback available
Error: unhandled exception: Could not access value because it is nil. [NilAccessDefect]

   at:  (godotnim.nim:946) - Unhandled Nim exception: No stack traceback available
Error: unhandled exception: Could not access value because it is nil. [NilAccessDefect]
```