Will assert in debug builds if args[0] is not an object.  Maybe change to `args[0]->IsObject() && HasExternalData(args[0].As<Object>())`?