Fix BadTokenException when trying to show the UpdateDialog after activity is closed