multipart: check for premature ending