MDL-46902 core_course: display meaningful message when no courses found