Model: fix errors in saveAndUnload

1. $id wasn't defined.
2. can use save() because all logic is already there. Just add unload() at the end.
Merge pull request #220 from DarkSide666/patch-19

Model: fix errors in saveAndUnload