Fix '$PAGE->context not set' warnings