Refactor MongoDBSpanStore.tracesExist()

The refactor ought to make it easier to debug.