[JBIDE-15262] fixed creating web- and add-on-cartridge at same time

The prior commit included a faulty implementation that did not work.
This commit now fixes this.