3.16: check 'conflict' error on media upload

sometimes when uploading attachments, 'conflict' errors occur, but the
upload was actually successful. Check the doc's _attachments for the
existence of the attachment before retrying the upload