bugfix for last commit: SEGFAULT on null alleles

the code for handling null alleles was mixing file and entry indices.
should probably make those different types!