Ctrl: search: check params 'q' and 'type_q' before adding it to the url

'params' hash always contains at least 2 keys