Don't use $wgTitle when the parser can provide one

Change-Id: Ifbb629b6f1945be27f6fa558045a14f7947bf571