jscript: Properly handle NULL bstr in str_to_number.