more protection around zero size thumbnails