Fix segfault when no image set
Fix very rare segfault (weird Tesseract API)