Hi, guys.
It looks like this has been reported in the Moodle Tracker and a fix has been created and should be available in 2.9.2 and 2.8.8.
https://tracker.moodle.org/browse/MDL-50293
See if that fixes your issue. If that doesn't sort out your problem, perhaps there is more to be done.