This is the moment a thief nearly lost his trousers after cakes were pinched from a Doncaster garden centre.