The risk isn't that somebody else could patent the technology. The risk is that somebody else already has a patent that could be applied to your technology. If you can get a patent for your technology, that makes it much harder for somebody to stretch their patent to cover your technology, because the presumption of competence on the part of the USPTO leads to the conclusion that the two patents cover different things.