Hearse key thief spared prison