Merge "added null check in doInBackground and if null, properly intializes variables." into nyc-dev