Make sure multiple empty files are sent as nil, and not the empty string

Disproves #1108