Fix EZP-21331: fatal error due to invalid facet def passed to fetch function