make sure we have found values for AC _and_ AN before using

fixes issue samtools/bcftools#34
Merge pull request #82 from sm15/feature/bcf_calc_ac_bugfix

make sure we have found values for AC _and_ AN before using