The fact a judge let that happen in his/her courtroom is the real reason that trial became a mess. I’d call that a piss-poor judge.
Well, it might have been a lazy prosecutor in not lining up his stipulations at pre-trial, but without a stipulation, the judge has nothing to do with the proof of facts.