MDL-46671 availability: DEBUG when course_module does not exist.
MDL-46671 availability: DEBUG when course_module does not exist.

There was a fatal error when calendar event linked to non-extant activities.

Now, instead of throwing an exception when a course_module does not exist, is_user_visible() will print a debug statement.

dilawar/moodle