There are judges who are sensitive to it and will go out of their way to punish it. I think part of the problem is that there are many occasions to "fix" the process by getting case resolved in a state that is known to be lenient to certain kind of behavior (very popular with patent trolls).
I don't think there is going to be an easy solution that could be written in law. Rather, the solution is to publicize "bad faith" behavior and lenient treating by judges.