Protect the app against crashes when opening the thumbnails cache