Fix crash in TransformRecognizer if node is unlinked but not deleted.