Prior to 119354f7 we specifically handled passing a zero length string to write on a buffer, restore that functionality.