Improve CaptionLeakTest on IE8 (#13829)

Change-Id: I0c04f3318af2c9c53e5967485008faa260830996