Fixed two bugs in the BAM reader that caused some segfaults on some files, for some genes.