fix crash when creating chart

Change-Id: Ie6e38a0461a10cc33ff3d85cbf3b35ffab0efd59
prevent potential crash if no SystemWindowData is passed

Change-Id: I89f9a2d0993084abe9065b1c44ea5d97b5b7a7cc