Fix edge case where last read in BAM is unpaired.