Fail if JS_NewUCStringCopyN returns null in str_to_jsval.
auto merge of #1816 : Ms2ger/servo/str_to_jsval-fail, r=jdm