Added a commitAllowingStateLoass hack to fix crashes while there is a popup window open above the app (such as the google profile popup from the pull down menu)