Replace isnan with checks before sqrt.
Replace isnan with checks before sqrt.

eddelbuettel/annoy,spotify/annoy,spotify/annoy,eddelbuettel/annoy,eddelbuettel/annoy,eddelbuettel/annoy,spotify/annoy,spotify/annoy