ServiceWorkers must be shown correctly even if there is a redundant worker.

Exception while running: function (result) {
        if (result._description == "0") {
            InspectorTest.addSniffer(Resources.ServiceWorkersView.prototype, "_updateRegistration", updateRegistration, true);
            function updateRegistration(registration)
            {
                if (registration.scopeURL != scope)
                    return;
                for (var version of registration.versions.values()) {
                    if (step == 0 && version.isRunning() && version.isActivated()) {
                        ++step;
                        firstVersionId = version.id;
                        InspectorTest.addResult("The first ServiceWorker is activated.");
                        InspectorTest.addResult("==== ServiceWorkersView ====");
                        InspectorTest.addResult(InspectorTest.dumpServiceWorkersView([scope]));
                        InspectorTest.addResult("============================");
                        InspectorTest.evaluateInPage("loadIframe(\"" + scope + "\");");
                    } else if (step == 1 && version.isRunning() && version.isInstalled()) {
                        ++step;
                        secondVersionId = version.id;
                        InspectorTest.addResult("The second Serviceworker is installed.");
                        InspectorTest.addResult("==== ServiceWorkersView ====");
                        InspectorTest.addResult(InspectorTest.dumpServiceWorkersView([scope]));
                        InspectorTest.addResult("============================");
                        InspectorTest.evaluateInPage("unloadIframe();");
                    }
                }
                if (step != 2)
                    return;
                var firstVersion = registration.versions.get(firstVersionId);
                var secondVersion = registration.versions.get(secondVersionId);
                if ((!firstVersion || (firstVersion.isStopped() && firstVersion.isRedundant())) && secondVersion.isActivated() && secondVersion.isRunning()) {
                    ++step;
                    InspectorTest.addResult("The first ServiceWorker worker became redundant and stopped.");
                    InspectorTest.addResult("==== ServiceWorkersView ====");
                    InspectorTest.addResult(InspectorTest.dumpServiceWorkersView([scope]));
                    InspectorTest.addResult("============================");
                    InspectorTest.flushResults();
                    InspectorTest.evaluateInPage("reopenFrontend()");
                }
            }
            UI.panels.resources.serviceWorkersTreeElement.select();
            InspectorTest.registerServiceWorker(scriptURL, scope);
        } else {
            InspectorTest.addResult("DevTools frontend is reopened.");
            UI.panels.resources.serviceWorkersTreeElement.select();
            InspectorTest.addResult("==== ServiceWorkersView ====");
            InspectorTest.addResult(InspectorTest.dumpServiceWorkersView([scope]));
            InspectorTest.addResult("============================");
            InspectorTest.deleteServiceWorkerRegistration(scope);
            InspectorTest.completeTest();
        }}
TypeError: Cannot read property 'select' of undefined
    at eval (evaluateInWebInspector1.js:107:58)
    at result (evaluateInWebInspector0.js:630:25)
    at mycallback (evaluateInWebInspector0.js:68:13)
    at runUserCallback (file:///b/c/b/linux/src/out/Release/resources/inspector/inspector.js:3145:61)
    at <anonymous>

