Slight refactoring of global VE language variables

Grouping multiple $out->getTitle()->getPageLanguage() calls 
and updating its use instead of the global $wgContLang

Change-Id: I1bc0e83cbd31a95b1716665314e082d5ed9113ea
Merge "Slight refactoring of global VE language variables"