Message.php is using the global $wgForceUIMsgAsContentMsg in two places and needs a strategy for use of config object for this global.
Possible way: Cache the config object in setContext and use it. May give warnings for using without context in the two places