Fix bug introduced when switching to es_buf_nul().