Fix more null issues. Add getFacets() to DataProvider.