Fixes for cohort uploading via copy-pasting on box

Bug: T76105

Change-Id: Ic12e5cdfc203b849b643bde51eaaf54c8d6a4714