EMI: Fix segfault when cancelling a save.
Merge pull request #1025 from JoseJX/FixESCAtSave

EMI: Fix segfault when cancelling a save.