Fix bug inadvertently introduced in 0d5b6356856.

That commit inadvertently picked up a kd-tree experiment that
didn't work and wasn't supposed to be checked in.

Tracked down by Brendan Duncan.