If a knocked-out script happens to be the first member of a JS aggregation, all subsequent members of the aggregation also get incorrectly knocked out.
Closes #3421243