Parents of a 13-year-old girl who gave birth to a stillborn baby in an attic have lost parental custody of her and the boy who officials believe is the baby's father.