UserPagesHeaderController: use global instead of WikiFactory::getVarValueByName()

Contrubution team, please review: @sebastian-wikia and @nandy-andy (per git blame)