mod/reader fix undefined $course in reader_delays_check() function in mod/reader/lib.php