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

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