Allow empty files to be added as files

By checking data.length, empty files (length === 0) are treated
as directories and added to the zip file incorrectly.