Famously, it doesn't always work, and I'm not ignorant to the latest series of scandals involving illegitmate journals, p-hacking, etc. But I think these tend to be the attention grabbing headlines, rather than the "norm." Glad to be challenged on that point.
But to return to my initial idea: I do think that we can arm ourselves with certain principles that, if applied, will move us away from biased thinking. Simply being aware of "confirmation bias" and other psychological pitfalls might make us more capable of figuring out where we're going wrong. As the article notes, people are famously blind to their own errors, but quite good at pointing out others'. So it's not like it's impossible for us to become better and stronger thinkers.
It just takes effort and some "meta-thinking" and I think some personal virtue and character to become better!