Do not crash if window is invalid

Fixes: 152664147
Test: atest NotificationShadeDepthControllerTest
Change-Id: If134426672072dfb3930ae5ad43d9eedc86de1b0
2 files changed