Avoid NaNs in ZCA whitening.