Fixing bug where search fails if there are no facets returned