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

Change-Id: Ieae3b1d82e92fadf5ab517c1c878fc82bcc0ecbd