This fixes segfaults when running C-API Tesseract 4 with psm as osd only with other than `osd` language.