make sure no empty file created when the obj does not exist in s3 bucket