Fix NullPointerException in AsyncTask