SecondLevelRetries.Disabled does not reflect when feature has been disabled

This fix also checks if the endpoint is a Worker and not a Distributor, in this case the feature should be disabled too.