Fixed unread count regression
Merge branch 'master' into MOODLE_26_STABLE