Quickfix to prevent 0-byte files written to Amazon S3