Fix issue with using geospatial index spec as sort spec.

Currently this passes because `this.indexExists` is undefined
within the context of the worker threads, causing it to always
call sort() instead of hint().