Script Command PUBLISH fails with empty arrays