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

fixes issue samtools/bcftools#34