[TwigBundle] changed conditional extensions registration strategy