On the transition between the Weibel and the whistler instabilities