Fix fatal error due to invalid facet def passed to fetch function