Fixes disposal of null node.