It wouldn't have mattered in the RNC case even if it was leaked. It was well known that Republican party insiders disliked Trump, but Trump won anyway. The DNC leak was motivated by Bernie's treatment in the primary.
I don't see how one follows from the other. It's also rather well known that Bernie was disliked by much of the Democratic establishment, so shouldn't that, by your reasoning, mean that WikiLeaks shouldn't have published the DNC leaks either?