Add nullptr checks for TargetSelectionDAGInfo in SelectionDAG.