documents: Reduce the number of thumbnailing invariants

https://bugzilla.gnome.org/show_bug.cgi?id=720533