Simplify conditionals in SearchContext#current_search_session