Fixing an issue that causes a crash when an observer messages an object which has been deallocated.