Fixed service provider registration.

Signed-off-by: crynobone <crynobone@gmail.com>
Swap and with && and or with ||.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.1'