#574: media upload cancel updated.
#574: fix for undefined reuploadMediaId.