Only access dc.app.workspace if it's present

Searcher is used outside the workspace as well