Fixed reallocation condition in VariantHeaderMerger

I will stand quietly in the corner now.