Return an error instead of trying to complete upload if parts are missing

S3 for some reason won't return an error in such cases and will happily
complete the upload, resulting in a corrupted file.
Remove debugging cruft
Fix a one-off error (10L)