tiigrade: checking for empty user records
tiigrade: fixing count
Merge branch 'gu24_update' of github.com:universityofglasgow/moodle into gu24_update