legacy: websearch interface fix

* Avoids exception on bad string formatting in the warning message
  when trying to access page without collections.