EZP-23474: fix LegacyEmbedScriptCommand doesn't activate the LegacyBundles

PR: https://github.com/ezsystems/ezpublish-kernel/pull/1035
JIRA: https://jira.ez.no/browse/EZP-23474