Test if err is defined

with the example given on the blog and/or README, I get the following error
```
godot/lib/godot/net/server.js:148
      throw err;
```