Blank remote_url resets download or integrity errors for uploaded file

Issue #1206