bufread, bufgetdata: Better check for when data isn't ready.