Add a more helpful error message when the transport is undefined.

When creating a profile with no transport, or just not setting
a transport fatal errors were emitted. A proper exception seems nicer.

Refs #3982
Fix PHPCS error.

Refs #3982
Merge pull request #3993 from cakephp/issue-3982

Add a more helpful error message when the transport is undefined.