Patch for reprocess issue where taggedDoc.length was not reset.