The train crew member who was seriously injured while trying to protect passengers during a mass stabbing has been discharged from hospital.