Cordova 2.2.0  An error occuur when trying to display alert dialog while activity is finishing