has_child query AVG score mode does not always work correctly
fixes #2750