Fix bug for non-expiring courses in Core Competency report