Fix disconnects caused by an initial send of an empty buffer