Evaluating and Learning Optimal Dynamic Treatment Regimes under Truncation by Death