Enable '$exists' MongoDB operator in API

This is to address issue #258.