Parent/child: has_parent filter must take parent filter into account when executing the inner query/filter

A bug introduced via: #7362

The has_parent query does take the parent filter into account when executing the inner query.