AliSplit: rewritehist fails if list is empty