Jade Martin's baby died aged three months but it was not her fault, a court was told.