Bugfix for detail view, which fixes a WidgetDisposedException while setting focus to an empty detail view