NXP-12424 update thumbnail only once on a document (removed useless session flush)