[MRG] Fix bug in kneighbors_graph when mode=distance

Fixes https://github.com/scikit-learn/scikit-learn/issues/4015