That's not true.
"According to the Official Baseball Rules, such a streak is ended when a player has at least 1 plate appearance and no hits. A streak shall not be terminated if all official plate appearances result in a base on balls, hit by pitch, defensive interference or a sacrifice bunt. A sacrifice fly shall terminate the streak."
Yea, thats what I thought. That would make no sense to punish someone who was walked all times without ever recording an out.