There's an implicit assumption that scripts are only created once, in this task. Since they are reset https://github.com/code-dot-org/dashboard/pull/538/files#diff-9cacd63540753d6929377d6cb58210cbR77 there's no chance of duplicate chapters. However, it may be good to document that either with a comment how with code.