Prevented AsyncTask crash on activity destroyed.