prevent searchword redirect when we're serving an endpoint request or in admin dashboard

this takes care of the broken search suggest bug and also the admin dash search bug

see https://github.com/GigaOM/legacy-pro/issues/4101 and https://github.com/GigaOM/legacy-pro/issues/4107