Fix NPE for checking immersive confirmation window root feature

This may happen when the immersive mode change is triggered from
the window removal. In this case, it will not be attached to a root.

Bug: 186072738
Test: manual
Change-Id: I546f9f651e3f6a26f506ed7269683b9bffa32926
1 file changed