Refs #4629: Only check the detected/wanted components in the distributep...

...olicy

Ticket: http://www.rudder-project.org/redmine/issues/4629

To be merged in master