Partial fix for #390. Now only the global analysis status will be used to determine what icon to show when the template is rendered.