Fix nans in math::slerp, second attempt.
Fix nans in math::slerp, second attempt.

My earlier fix (3b373e5) was insufficient in some cases, this new
approach is cribbed from glMatrix.

google/filament,google/filament,google/filament,google/filament,google/filament,google/filament,google/filament,google/filament,google/filament,google/filament,google/filament,google/filament