Omit inactive course offerings from courses list

If the course offering’s IsActive value is false, then it will not be
shown as a choice in the courses list.
Fix condition detecting whether a course offering is active

Wrap the entire contents of the map anonymous function since `continue`
is not valid in the context. Also fix where IsActive is being read from.