Be more careful when accessing and calling untrustedThenable.then
Check for primitives and null/undefined