Fix crash related to empty buffer_ argument.