A woman has walked free from court after prosecutors accepted that she and her Swindon-based partner did not illegally abort her baby.