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