Fixed checking retval of tesseract api init