Fixed: "domKey instanceof" check in getallDocumentsByKey