Fix for course completion calculation, inline with _isOptional