The stabilizing role of differential rotation on hydromagnetic waves