Minor fix for putting 0-length files over accelerated connections

Fixes #4652