add logging to CreateFoodAndUploadTask
Add null checks