Fixes a memory leak on IE8 in LayoutManagerIE8 (#12688)

Change-Id: I9b2d2ff9513a9063de292fdf1e14b227e0ff4d76