Shifted adapter creation to onPostExecute to prevent NPE