(bug 44548) Fix JS error if repoScriptPath or repoUrl settings not defined

Change-Id: I9b1d706b697224a5e0727a68ac35038c865f1fed