Fix dismissAlert for UICatalog on iOS 7

Fix the dismiss issue from #1437

@jlipps Before I make the same change for accept, what do you think about this approach? To repro the problem:

1. Open UICatalog.app on iOS 7
2. Click Alerts
3. Click Show OK-Cancel
4. Observe all of Appium's alert methods fail