A doctor and an agency nurse who "seriously neglected" a six-year-old boy who died in hospital have been given suspended sentences for his manslaughter.