Fixed an issue when the top window is hidden because this is not the root

If you use some components like https://github.com/ipodishima/RZNotificationView-1/tree/ios7-dev, there are placed on a window which becomes not visible after showing a notification