Don't crash if WindowManager not ready

Change-Id: Idd89ad8ad3018a0bb0ed86bc4f8faf6c356f633e