Handle empty buffer.