A mum has been handed a suspended sentence for owning a dog which was dangerously out of control after it bit a woman walking down the street.