This ensures wrappers always have a reference before being added to the cache.
Created attachment 447118 [details] Patch
Committed r287020 (245225@trunk): <https://commits.webkit.org/245225@trunk>