A contractor has been sentenced after a man who hired him was killed by a piece of barbed wire that shot out of his hedge cutting machine.