Fix updating of existing manipulations in source code upload

I implemented this fix for new manipulations (line 157), but did not for new.