A dog owner has narrowly avoided jail after neglecting her Staffordshire terrier cross so badly that he had to be put to sleep.