Former Scotland midfielder John Fleck was taken to hospital shortly before he was due to take his place on the substitutes' bench for Chesterfield's League Two game against Doncaster Rovers.