avoid error in getFacets when no layer exists