fixed an issue where going directly to a search result page without having browsed the site before  will result in an error