Don't emit "drain" events when paused

When a stream is paused in a "data" event handler, don't emit
"drain" events if it is already ended.