Population Dynamics of Excited Atoms in Dissipative Cavities