IOStream->drainIfMatch(): bugfix