When OCR is disabled: Fix scan and page editing

Signed-off-by: Jerome Flesch <jflesch@gmail.com>