Followup db0dd687: fix JS error on save

Can't destroy the target twice, oops.

Change-Id: I1c522d1e23b528a7ee7818a23b77fb8d5b4063fb
Merge "Followup db0dd687: fix JS error on save"