Followup db0dd687: fix JS error on save

Can't destroy the target twice, oops.

Change-Id: I1c522d1e23b528a7ee7818a23b77fb8d5b4063fb
(cherry picked from commit 32ee4b42be033320d68b2cf71e745522a9306463)