Updated setContentType to clear _document after creating _multipartReader