Search: Fix support for named filters/queries inside nested filters.

Named filters/queries inside nested queries/filters were being silently ignored.