Fix NPE when StaticWorkbenchPanelView is selected.