The judge is following the law, and the law has served our society well for many, many decades, and centuries on many counts. It is logical and it treats citizens equally, and puts citizens rights above the rights of the monied to never be accountable. There are societies where having money means never having to answer to anyone, and, at the edges, we even have some of that, in fact.
These kinds of plaintiffs need to be addressed in some reasonable way, but, with discincentives, perhaps. In order to have a free society, however, access to the courts is a basic part of liberty. Take away people's liberty, even with good intentions, and you break everything. It's how people protect their land, their families, their individual rights and much, much more. It's what probably some people think guns are, the most important means to protecting oneself. Limit those rights and we're all finished in a very short time, as people with money and more guns than we'll ever get, take over. We see societies like that all over the world.
These nuisance suits are a part of living in a truly free society, with citizens who know their rights and utilize them, peacefully. The other option is to make sure that everyone is really stupid (or armed and ready to kill everyone else), so even if they have the rights, they are too stupid, or their rights are too difficult to access via courts or every dispute turns to violence... those are other forms of tyranny in my book. And having a voting citizenry that is very, very unintelligent and not fact based, also raises serious problems for a democracy.
Unfortunately, we're stuck with a free society... where people know their rights and the confusion of it all, bugs the crap out of everyone, but it works somehow. :)
And where we did not have law, we had the wild west, claims companies where adverse possession was 9/10ths of the law and joined with basically gangs of other local residents to defend each other's claims via adverse possession (the Pioneers were squatters, initially), where if you did not have a gun, your property would be taken, and often was taken, and the local law was often nothing more than gangs with guns, some good, some not so good, some meh.