A man has been cleared of sexual communication with a child after he fell into a potential blackmail trap.