Fix bug that occasionally corrupts BAM tag data.