[HttpKernel][Profile] Fixes #7883