Fix: https://tracker.moodle.org/browse/MDL-46427