Fixed error message in haplotype construction when haplotype is the
same as the reference but contains variants. Also fixed crash when down-sampling,
if one sample has no data.