Your point is well-taken and (thankfully) there are safeguards in place at top journals. However, Rob Tibshirani examined this a while back with a case study and came up with some unsettling conclusions about reproducibility: http://www-stat.stanford.edu/~tibs/FL/report/. The case study highlights the importance of debugging not only code, but also the entire experimental process.