Remove ending multipart stream on invalid filetype

Causes the system to hang, and it won’t get written to a file anyways
if the function returns.