Try converting to BSON::ObjectId prior to query