WebSearch: fix browsing deleted/restricted records

* Amends the browse_pattern functionality such that deleted and restricted
  records are no longer included in the results unless their collection is
  explicitly defined.  (Only for restricted records and authorized users.)
  (closes #1292)

Co-authored-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>