Fixup bad hack usage of $wgOut

Change-Id: Id9c47c517611beea361c83e98ab5a1d906b1dcd5
Merge "Fixup bad hack usage of $wgOut"