Prevent possible concurrency issue when logging an event with an item that's about to be deleted.