[HttpKernel] fixed the inline renderer when passing objects as attributes (closes #7124)