Judge overturns conviction against jockey