In general, we want all conditionals to be part of the assert so that they can get stripped out for prod/min builds. This means changing the assert condition to `context || !router || !router._lookupActiveView(name)`.