Fixed exception when parsing a multipart form.