Risk of population extinction from fixation of deleterious and reverse mutations