fix crash when resizing ScrollImage in OnResize event handler during context loss (common scenario with DX11 hardware)