fix compilation error because of missing NoGalleryDocumentException