Fixes problems when the module is enabled without OCR and Large Image.