don't delete last scripted assignment before it is sent out
Merge pull request #1156 from birarda/assignment

fix scripted assignment delete before it is sent out