fix missing application context when using a saved search

fixes #788