Back-compat for $wgProfiler set as a class. Fix for r89206