fix handling of empty data message for disconnect