adding check for NULL character in r.js return value before constructing datum_t