MDL-50483 gradereport_user: fix the fatal error of no enrolled users