check for NULL when parsing strings

to reproduce the issue:

```
$ build/duklub repl.js
```

```js
fd = uv.fs_open('./b.js', 'r', 0644);
uv.fs_read(fd, 1024, 0).toString();
```

before the change, an error trying to parse an empty string (NULL), after the change, expected behavior.