Fix for crash when returning to activity after it had been finish()ed