Make sure quadtree query intersects envelope

Sometimes the point(s) returned by the quadtree query does not interect
the point of interest. Now we cover this possibility.