Minor bugfix to --upload-id check