minor optimalization at bundle initialization

fast check to avoid six array method calls
[HttpKernel] made a small optimization to Bundle initialization