Squeezing in a Rydberg atom maser: effect of damping and thermal field