fixed a crash when marchalling/unmarchalling saved instance data when resuming the activity after it has been destroyed by Android.