Fix document scope reset after add, fix wrong web.xml configuration
(it broke TIFF image encoding on OCR)