Fixed LineBasedFrameDecoder

Discarding flag was never reset.
Off by one error on final discard.