The evidence on infant feeding and atopy is contradictory - there may well be no difference, when the dust settles, between exclusive bf to 4 mths and exclusive bf to 6 mths in this respect. At the moment, research is actually hampered by different definitions of exclusive breastfeeding, and the difficulty of ensuring the exclusivity of it, and the challenges of measuring and defining allergy.
I don't think allergy is the strongest argument in favour of supporting the WHO guidance, personally, because of this contradictory research base.
We don't cover all adverse effects of non-exclusive bf with the term allergy, anyway.
There are many physiological pointers indicating that around 6 mths is about right for most infants, and the debate in WHO when the studies were being examined as a possible policy base was really very little to do with allergy, but rather to do with the question of infant growth and gastro-enteritis.
Gastro infections were pretty clearly less among babies breastfed excl for longer - but, came the question, did this compromise growth in any way? The answer was, broadly, 'no' - babies who continued excl bf beyond 4 mths did not suffer growth-wise, so there was no price to pay for the continued protection against infection. There was also no evidence, broadly speaking, that babies suffered from any sort of iron deficiency if they did not have other foods until after 6 mths.
Sticking to the physiological norm of (about) 6 mths excl bf had no disadvantages and demonstrable advantages, as a public health policy.
In individual babies, individual 'deviations' might apply, of course.
Since this policy, other papers have emerged showing that (for example) earlier weaning/ff increases the risk of later obesity (lots of big studies, controlling for other social and dietary factors). I am not sure if anyone has done anything on conditions like IBS or other chronic gut disorders that tend to emerge in adult life, but it would be interesting to see the results.