Fix crash when executing the Save action
Detecting aboutToClose is not enough because savingAs doesn't always go through aboutToClose it can go through swapBackingFile BUGS: 467603
Detecting aboutToClose is not enough because savingAs doesn't always go through aboutToClose it can go through swapBackingFile BUGS: 467603
mentioned in commit 91bcb4cc