Fix potential duplicate mainJSPaths being added