newui: Properly format adapter's findQuery method

Fixes olgabrani/synnefo#23