Fix 'on remove assignment'

The action would never fire because it was run /after/ the assignment
was removed rather than before. The action will now fire on the current
assign script before removing it entirely.