course/lib.php: MDL-23401 Fix regression introduced in MDL-23255 that prevents course creation when new course data doesn't include visibility info
course/lib.php: MDL-23401 Fix regression introduced in MDL-23255 that prevents course creation when new course data doesn't include visibility info

dilawar/moodle