Patent trolls don't produce anything that can infringe on a patent, so having a patent portfolio does nothing to protect against them.
A patent portfolio helps when a competitor claims their patent is being infringed. A company with a large patent portfolio can cross-license patents and avoid a lawsuit.