Check if duk_to_string() returned NULL.