Just got same issue and have found a workaround. You can just go through all application windows and get a window with windowLevel equals UIWindowLevelNormal
.
Sure, this will work correctly only if you have one normal window in your app. If you have more than one you should have your own rule how to detect the correct window.
Hope this will help.