If _parent field points to a non existing parent type, then skip the has_child query/filter

PR for #7349