OAK-1645 - Route find queries to Mongo secondary in MongoDocumentStore

Fix logic related to determining the parentId when query is being performed as fromKey are not valid id in some cases