Avoid double-populating ScriptCollections when refreshing.