Fix for issue when running a where comparison on fields of type MongoID

Added in a fix for an issue when executing a where query on field which is of type MongoID. Previously, it would not return any results as it was searching for a string, now if the string matches the MongoID format it will search for a MongoID instead.