Test for this.router before setting the loader.