Short-circuit the recent history search when offline; show an alert

Before, this would attempt searching when clicking from a recent search and you were offline. Now, it doesn't let you get to that state.