fix(client): Throw an exception if invokeHandler is passed an invalid handler.

* This will help devs catch errors faster.

fixes #1105
Merge pull request #1276 from mozilla/issue-1105-blowup-invokeHandler

fix(client): Throw an exception if invokeHandler is passed an invalid handler.