Fix Bug When Scripted Objects Taken To Inventory

Script variables where not updated when the prim was Taken to inventory
because delete was called before take. Switched these around and now
works correctly.
Merge pull request #4 from AliciaRaven/TakeScriptPrimFix

Fix Bug When Scripted Objects Taken To Inventory