I would suggest getting a shorter nipple, and a coupling. This way, when you tighten up the coupling it will draw the gasket and the 1/2 cpvc and brass fitting tight to the inside wall of the cooler. This should make it water tight.
As a disclaimer, I have personally never built a mash tun, but if I'm understanding your problem, this should fix it.