com.vaadin.navigator.Navigator#removeView(String viewName) method only applies to views registered using #addView(String, View) or #addView(String, Class) which both have a null check:
if (viewName == null || view == null) {
            throw new IllegalArgumentException(
But I added def removeView(viewName: Option[String]) anyway. Should I remove it?