Fixed `has_parent` query and filter returning no results with multi level child docs.