Add exception handling and OCR to HOCR copy.