Fix BadTokenException

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