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