Don't block the request if there are no files present

Currently the request simply blocks. I encountered this scenario will forwarding emails to an endpoint. If an email without attachments was forwarded to the endpoint the request blocked (and eventually times out). If there are no files in the request, it should report an error.