Main window: Only load thumbnails when the document actually appear in the document list

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