Ensure a string is returned from iOS getText

In some cases the return value from instruments is not a string. So make sure it is. Fixes #4098
might want a check here in case res.value is null. if so this will crash. unless we're sure we'll never get null.

```js
res.value = res.value ? res.value.toString() : ""
```

or something like that?