Bug 939294 - Fix b2g failure with null JSObject. r=bz on irc