Just to let you know. As of version 1.29.4.2, I am having the same thing come up with the character Astaroth. Sterile trait, once with pregnancy prevention checked, and once without, both times with a customer, she has gotten pregnant and given birth.
Just seemed a bit odd to me.