Fix nil condition, initialize session[:search] if absent