JWST and most scientific instruments are extreme one offs that take a long time to build and don’t have backup parts. So if anything trying to dock multiple parts in orbit would have likely increased costs and risks.
There is a very small risk of a launchpad failure, but sending up multiple launches only increases those risks. Further, building a second one would have been much cheaper though still very expensive.