Saving Multiple Non Persistent Data crash

This should solve bug 1733.
I also corrected a small bug about the progress bar when exporting data.

When testing, dont't forget to run medSqlTests to check everything is ok.

Thx,
Guillaume