Flow - only set the 'ended' flag if the frame is sent to the current stream. Fixes #89