[Issue 10307] Regression when searching for nonexistent entries and no access to DB