Detuning-induced robustness of a three-state Landau-Zener model against dissipation