Fix to ensure that we only iterate child windows if the app has any