Fix a bug when a theme had no screenshot.