Fix a bug with dismissing the action sheet in the Example app.