message: null handling
diff: @@ -238,7 +238,8 @@ class Batch {
  async deleteDocument(context) {
  let { branch, type, id } = context;
  let { rows } = await this.client.query('select branch, type, id, source, generation, upstream_doc as "upstreamDoc" from documents where branch=$1 and type=$2 and id=$3', [branch, type, id]);
  - let [ { upstreamDoc } ] = rows;
  + let [ row={} ] = rows;
  + let { upstreamDoc } = row;
  this._touched[`${branch}/${type}/${id}`] = this._touchCounter++;
  let sql = 'delete from documents where branch=$1 and type=$2 and id=$3';
  