search: avoid nil deref for stable: on alert
Created by: rvantonder
Specifying stable:
for a query that may raise an alert instead of returning results can result in a nil deref. See comments. No test: this is a defensive change. I may add one later.
Context: I triggered this by running a query with stable:
that should have thrown a 'repo limit' alert, but instead I got a nil deref.