Fix search bug and editor-config error

I reckon this if statement belongs in `SearchQuery#initialize` ?

My reasoning: it is the job of SearchQuery, not the controller is to turn params into a proper query