libfreerdp-core: fix segmentation fault caused by wrong stream use
(after tsg code merge)