WindowManagerService: Remove window with no app token when not able to dispatch events
When there is an ANR on a dialog that is not created from an activity, as the app token i.e. history record does not exist for this window, window manager service is not able to handle the key events properly leading to run in an infinite loop. This appears to be a UI freeze in users perspective. Thus removing the window when windowManager is not able to dispatch events to a window with no app token. CRs-Fixed: 229780
Loading