Added sensible fallback behaviour for failed searches.