Make statistical emittance generation robust.