BugId: 36353 fix null object reference in ThumbnailImage class