Stdio.sendfile: Fixed use before set.

Fixes "Indexing the NULL value with \"call_out\".", when
Stdio.sendfile(({""}), 0, -1, -1, 0, simulated_file, cb, ...).

Also fixes issue where the trailers weren't sent if there was no
source file, no headers and a non-empty file length.

Fixes [bug 7230].