The train, which was travelling at around 78mph, was just seconds away from colliding with workers