Fix crash when resuming killed activity.