Fix iOS 7 issue when cancelling or using last

The controller was dealloc'd and then the action sheet tried to message
its delegate and it was talking to a zombie.