A DJ has been acquitted of attacking a four-year-old boy at a gender reveal party.