Fix setting of the offline flag in the grid service. (PROTOCOL CHANGE).