Don't download a trace log file if it is empty.
After this fix, GET /api/v5/trace/clientempty/download returns 404 {"code":"NOT_FOUND","message":"Trace is empty"} If no events matching the trace condition occurred.
/api/v5/trace/clientempty/download
{"code":"NOT_FOUND","message":"Trace is empty"}