pass context parameter to ProcessAttachmentsTask constructor
null check for context in addMedia