MDL-37981 use MUC instead of global var $FILTERLIB_PRIVATE
MDL-37981 check if course is empty in filter_preload_activities()