Spin-off of LUCENE-6425: this is error-prone as it can lead to inconsistent document and total term frequencies.