Integrity: Maintain a reference to the copy target.

Fixes #467.

Tested and proven for both the Firefox and Chrome (on Windows) issue scenarios mentioned in the bug.