Avoid using stale UserScript pointers

BUG=625393
TEST=Manually. Compile Chrome with ASAN and follow the steps from the bug report.

Review-Url: https://codereview.chromium.org/2116923002
Cr-Commit-Position: refs/heads/master@{#403725}
(cherry picked from commit a80776332fd8c99b58beab5d91a6675e85013628)

Review URL: https://codereview.chromium.org/2155863003 .

Cr-Commit-Position: refs/branch-heads/2785@{#169}
Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382}
1 file changed