Fix crash attempting to access base node of a deleted object