native: Fix error handling when checking if null/undefined is a String/Number
native: Fix error handling when checking if null/undefined is a String/Number

We need to guard against the two cases where we can't call valueOf().

mbebenita/shumway,mozilla/shumway,mbebenita/shumway,yurydelendik/shumway,tschneidereit/shumway,yurydelendik/shumway,mbebenita/shumway,tschneidereit/shumway,tschneidereit/shumway,yurydelendik/shumway,mozilla/shumway,tschneidereit/shumway,mozilla/shumway,tschneidereit/shumway,yurydelendik/shumway,yurydelendik/shumway,yurydelendik/shumway,tschneidereit/shumway,tschneidereit/shumway,mozilla/shumway,mozilla/shumway,mbebenita/shumway,tschneidereit/shumway,mbebenita/shumway,mozilla/shumway,mozilla/shumway,mbebenita/shumway,mbebenita/shumway,mbebenita/shumway,mozilla/shumway,yurydelendik/shumway,yurydelendik/shumway