admin MDL-20204 Fixed minor regression $PAGE->context needs to be set before calling...