When a divorce is granted the husband for the pregnancy of the wife at the time of the marriage, the issue is thereby bastardized.