fix #419 Issue in DialogOnResizeTestCase

resolves an issue for DialogOnResizeTestCase (and possibly others) where there is an assumption that the HTML element will contain a style attribute.