I don't think they did mess up. The run didn't come from the throw, it came from the act of hitting Stokes. The rule states the run counts if the the batsmen had crossed at the time of the throw or act. That's my take on it anyway.