fix issue with spamming logging files when loading cached thumbnail

Conflicts:
	lib/private/preview.php