Made harvest gather stage more robust against errors.