fixing problems with Userdefaults Changes being null.
I cannot reproduce it with the normal Gift Batch Export, but when called from my bankimport plugin, I get a NullReferenceException.
merge from lp:~tpokorra/openpetraorg/dev00003162_gift_batch_export_nullexception