Fork : Fix exception when CleanupThumbs() when textures is null.