Fix handing of an array of bundles and not a string.