MDL-39785 bug fix: filter_activitynames was not applied correctly