(iOS) Fix issue where file would be deleted even if the confirmation dialog is canceled.