Cannabis crop plot almost undone after farmhand's find, court told