hts_idx: fixed indexing of NO_COOR blocks

This also fixes indexing of bams with no mapped reads.