Don't generate API requests for empty searches

(1.3 release not published yet so version not updated again)