fix HTTP 422 when gist-logs sends an empty file

Closes #29476.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>