Safe and Nested Endgame Solving for Imperfect-Information Games