added a client validation check

This is a suggestion for how we could make it easier to understand what the problem is if a developer forgets to inject a client in a new Provider subclass. Please have a look @laszlourszuly .